<?php
/**
 * 登录校验
 * Created by Sublime Text 3.
 * @authors Rejeo (rejeo@qq.com)
 * @date    2018-05-01 00:47:12
 * @version $Id$
 */
namespace app\bis\validate;

use think\Validate;

class Login extends Validate {

    /*验证规则，注意多去使用一些内置规则*/
    protected $rule = [
        'username'         => 'require|max:30',
        'password'         => 'require|max:30',
    ];

    /*验证提示*/
    // protected $message = [

    // ];
    /*场景验证*/
    /*如验证add场景（该场景定义只需要验证name和parent_id字段）*/
    // protected $scene = [
    //     // 'links' => ['title'=>'require|max:30|unique:links','url','desc'],
    // ];
}
